/**
 * @Project PONTienLenMienNam
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2011 TMH. All rights reserved
 * @Createdate May 10, 2011
 * @Createtime 10:28:37 AM
 */

package com.gigalaxy.game
{

	public class ExtensionCMD
	{
		public static var CREATE_ROOM:String = "createRoom";

		public static var DEAL_CARDS:String = "a";

		public static var FINISHED:String = "g";

		public static var GIVE_UP:String = "c";

		public static var JOIN_ROOM:String = "0";

		public static var ROUND_FINISHED:String = "e";

		public static var NEXT:String = "b";

		public static var OUT_OF_MONEY:String = "!";

		public static var RESTART:String = "@";

		public static var SET_AVATAR:String = "setAvatar";

		public static var SET_FULL_NAME:String = "setFullName";

		public static var START:String = "#";

		public static var THROW_CARDS:String = "d";

		public static var USER_ENTER:String = "7";

		public static var USER_LEAVE:String = "8";

		public static var USER_LIST:String = "6";

		public static var CHARGE:String = "$";

		public static var OWNER_CHANGE:String = "9";

		public static var KICK:String = "~";

		public static var SET_PON_ID:String = "setPonID";

		public static var CONFIG_GAME:String = "3";

		public static var LEAVE_ROOM:String = "1";

		public static function log(cmd:String):String
		{
			var res:String = "";

			switch (cmd)
			{
				case JOIN_ROOM:
					res = "joinRoom";
					break;
				case USER_ENTER:
					res = "userEnter";
					break;
				case LEAVE_ROOM:
					res = "leaveRoom";
					break;
				case USER_LEAVE:
					res = "userLeave";
					break;
				case OWNER_CHANGE:
					res="ownerChange";
					break;
				case USER_LIST:
					res = "userList";
					break;
				case START:
					res = "start";
					break;
				case DEAL_CARDS:
					res = "dealCard";
					break;
				case THROW_CARDS:
					res = "throwCards";
					break;
				case NEXT:
					res = "next";
					break;
				case ROUND_FINISHED:
					res = "roundFinished";
					break;
				case GIVE_UP:
					res = "giveUp";
					break;
				case FINISHED:
					res = "finished";
					break;
				case RESTART:
					res = "restart";
					break;
				case CHARGE:
					res = "charge";
					break;
				case OUT_OF_MONEY:
					res = "outOfMoney";
					break;
				case KICK:
					res = "kick";
					break;
				default:
					res = cmd;
					break;
			}

			trace(res);
			return res;
		}
	}
}


